<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/comm :: head "></head>
<body>
<div class="wrapper">
    <header th:replace="common/comm :: header "></header>
    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <h4 class="page-title">
                    <font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE"
                          data--w-o-w_-i-n-d-e-x="43">人事管理 >> 人事档案管理 >> 档案登记</font>
                </h4>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body">
                                <form th:action="@{/sys/archives/addSave}" th:method="post"
                                      enctype="multipart/form-data">

                                    <div class="form-group">
                                        <label for="code"><font>所属部门:&nbsp;&nbsp; </font></label>
                                        <input type="text" readonly="readonly" class="form-control" id="department" name="department" required="required" oninvalid="setCustomValidity('请根据职位名称显示部门!')" oninput="setCustomValidity('')" value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font> 职位名称:&nbsp;&nbsp; </font></label>
                                        <input type="hidden" id="postId" name="postId" value="">
                                        <input type="text" readonly="readonly" class="form-control" id="postName" name="postName" required="required" oninvalid="setCustomValidity('请选择职位!')" oninput="setCustomValidity('')" value="">
                                        <img th:src="@{/images/search.png}" href="javascript:;"
                                             th:onclick="'javascript:getObj('+this+');'" data-toggle="modal"
                                             data-target=".bs-example-modal-lg"/>
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font> 姓名:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" name="name" required="required" oninvalid="setCustomValidity('请输入姓名!')" oninput="setCustomValidity('')" value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font> EMAIL:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control email"
                                               name="email"
                                               required="required" oninvalid="setCustomValidity('请输入EMAIL!')" oninput="setCustomValidity('')"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font>住址:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control"
                                               name="address"
                                               required="required" oninvalid="setCustomValidity('请输入EMAIL!')" oninput="setCustomValidity('')"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font>身份证号:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control isCardNo"
                                               name="identityCard"
                                               required="required" oninvalid="setCustomValidity('请输入身份证号!')" oninput="setCustomValidity('')"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font>毕业院校:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control"
                                               name="college"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="kv-item ue-clear">
                                        <label>薪酬标准:</label>
                                        <div class="kv-item-content">
                                            <select class="form-control" name="salS" id="salS">

                                            </select>
                                        </div>
                                    </div>
                                    <div>
                                        <label for="code"><font>社保卡号:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control"
                                               name="socialSecurity"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="kv-item ue-clear">
                                        <label>档案状态:</label>
                                        <div class="kv-item-content">
                                            <select name="status" class="form-control" id="status">
                                            </select>
                                        </div>
                                    </div>

                                    <div class="kv-item ue-clear">
                                        <label>性别:</label>
                                        <select name="gender" class="form-control" id="gender">
                                            <option value="-1">--请选择--</option>
                                            <option th:value="0">女
                                            </option>
                                            <option th:value="1">男
                                            </option>
                                        </select>
                                    </div>
                                    <div>
                                        <label for="code"><font>联系电话:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control phone"
                                               name="phone"
                                               required="required" oninvalid="setCustomValidity('请输入联系电话!')" oninput="setCustomValidity('')"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font>户口所在地:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control"
                                               name="koseki"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font>专业:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control"
                                               name="major"
                                               oninvalid="setCustomValidity('请输入专业!')" oninput="setCustomValidity('')"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font>开户行:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control"
                                               name="openBank"
                                               oninvalid="setCustomValidity('请输入开户行!')" oninput="setCustomValidity('')"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font>登记人:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control"
                                               readonly="readonly"
                                               name="" value=""
                                               th:value="${#session.getAttribute('userSession').username}">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font>紧急联系人:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control urgentContacts"
                                               name="urgentContacts"
                                               oninvalid="setCustomValidity('请输入紧急联系人!')" oninput="setCustomValidity('')"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font>政治面貌:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control"
                                               name="politics"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="kv-item ue-clear">
                                        <label>学历:</label>
                                        <div class="kv-item-content">
                                            <select name="education" class="form-control" id="education"></select>
                                        </div>
                                    </div>
                                    <div>
                                        <label for="code"><font> 银行卡号:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control bankAccount"
                                               name="bankAccount"
                                               oninvalid="setCustomValidity('请输入银行卡号!')" oninput="setCustomValidity('')"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font> 个人履历:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control"
                                               name="record"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font> 备注:&nbsp;&nbsp; </font></label>
                                        <input type="text"
                                               class="form-control"
                                               name="remark"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font> 简历附件:&nbsp;&nbsp; </font></label>
                                        <input type="file"
                                               class="form-control"
                                               name="attachs"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div>
                                        <label for="code"><font> 图片:&nbsp;&nbsp; </font></label>
                                        <input type="file"
                                               class="form-control"
                                               name="attachs"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <input type="hidden" name="num" id="num" value="">
                                    <div class="form-group" style="text-align: center;">
                                        <input type="submit" class="btn btn-success" value="提交" th:onclick="changeNum(0)">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <input type="submit" class="btn btn-success" value="提交审核" th:onclick="changeNum(1)">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <input type="reset" class="btn btn-danger" value="重置">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <input type="button" th:onclick="'javascript:history.go(-1);'" class="btn btn-danger"  value="返回" >
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>

            </div>





            <!-- Modal -->
            <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" id="myModal" >
                <div class="modal-dialog modal-lg" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <span>应聘职位列表</span>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                        </div>
                        <div class="modal-body">
                            <input id="oId" type="hidden" th:value="${oId}"/>
                            <form class="form-inline" th:action="@{/sys/post/showList(show='incl')}" method="post" id="formIndex2"
                                  onsubmit="return false">
                                <input type="hidden" id="showDiv" value="showList">
                                <input type="hidden" value="1" name="pageIndex" id="formPageNo"/>
                                &nbsp;&nbsp;职位名称:&nbsp;&nbsp;
                                <input class="form-control " style="width: 130px" type="text" name="name" th:value="${name}"/>
                                &nbsp;&nbsp;所属部门:&nbsp;&nbsp;
                                <select class="form-control" name="oId">
                                </select>
                                <input type="hidden" name="isStart" value="1">
                                &nbsp;&nbsp; &nbsp;&nbsp;<input type="button" id="sel"
                                                                value="查询" class="btn btn-default"
                                                                onclick="queryList(document.getElementById('formIndex2'),1)">
                                &nbsp;&nbsp;
                                &nbsp;&nbsp;<input type="button" id="ok" value="确定" class="btn btn-default">
                                &nbsp;&nbsp;
                            </form>
                            <div id="showList" class="pageListShow"></div>
                        </div>
                    </div>
                </div>
            </div>




        </div>
    </div>
    <footer th:replace="common/comm :: footer "></footer>
</div>



</body>
<script type="text/javascript" th:src="@{/js_hr/archives/archives.js}"></script>
<script th:src="@{/js_hr/post/post.js}"></script>
</html>


